<%@taglib prefix="html" uri="http://struts.apache.org/tags-html" %>
<%@taglib prefix="bean" uri="http://struts.apache.org/tags-bean" %>
<%@taglib prefix="logic" uri="http://struts.apache.org/tags-logic"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it" lang="it">
<head>
<title>GESTIONE PRATICHE</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="http://intranet.consiglioregionale.piemonte.it/css/applicativi.css" type="text/css" />
<script src="/finreges/js/prototype.js" language="javascript1.3"></script>

<script language="javascript1.3" src="/finreges/js/finreg.js">
</script>
</head>

<div id="intestazione">
  <div id="logosire">&nbsp;<span><acronym title="Sistema Informativo Consiglio
Regionale">SiCr</acronym>:</span></div>
  <div id="logocrp" ></div>
  <h1>Finanziamenti Regionali</h1>
</div>
<div id="percorso"></div>

<DIV id="strumenti"> 
  <UL class="strumenti">
    <LI>
		STAMPA
	</LI>
	    <LI>
	<a href="home.do">HOME</a></LI>

  </UL>
	<div id="help">
    <a href="http://intranet.consiglioregionale.piemonte.it/servizi_intr/manualistica/index.htm" title="help">?</a>
  </div>
 
</DIV>
<div id="contenitore">
  <div id="menu"></div>
</div>

<div id="corpodx"> 
  
<h2>Stampa schede finanziamenti</h2>

  <html:form action="/stampa">
    <fieldset>
  <table width="100%" border="2">
    <tr> 
      <td colspan="3"><strong>Ricerca le schede da stampare</strong></td>
    </tr>
    <tr align="left" valign="top"> 
      <td>Anno 
        <html:text property="anno"></html:text>
        </td>
      <td width="28%">Num. Quaderno
      <html:text property="numeroQuaderno"></html:text> 
        </td>
      <td width="46%">Num. scheda
      	<html:text property="progressivo"></html:text> 
        </td>
    </tr>
    <tr align="left" valign="top"> 
      <td width="26%">Classificazione</td>
      <td colspan="2"> 
	      <select name="classificazione" style="width: 50%" onchange="javascript:{loadSottoClassificazioni('3')}">
	          <option value="-1">-- seleziona --</option>
		      <c:forEach items="${listaClassificazioni}" var="item">
		      	<option value="<c:out value="${item.idClassificazione}"/>" <c:if test="${printSchedaForm.classificazione==item.idClassificazione}">selected="selected"</c:if>><c:out value="${item.descrizione}"/></option>
		      </c:forEach>
	      </select> 
       </td>
    </tr>
    <tr align="left" valign="top"> 
      <td width="26%">Sottoclassificazione</td>
      <td colspan="2"> 
	      <select name="sottoClassificazione" style="width: 50%">
	          <option value="-1">-- seleziona --</option>
		      <c:forEach items="${sottoclassificazioni}" var="item">
		      <option value="<c:out value="${item.idSottoClassificazione}"/>" ><c:out value="${item.descrizione}"/></option>
		      </c:forEach>
	      </select> 
        </td>
    </tr>
    <tr align="left" valign="top"> 
      	<td width="26%">Dalla scheda num. 
	    <html:text property="dallaSchedaN"></html:text>   
		</td>
      <td colspan="2">Alla scheda num. 
          <html:text property="allaSchedaN"></html:text>
      </td>
    </tr>
  </table>
  <div id="pulsante"> 
    <ul>
      <li> 
        <input type="button" class="bottone" value="Stampa" onclick="javascript:salva('stampaPDF.do',document.forms[0])">
      </li>
    </li>
	   <li> 
        <input type="button" class="bottone" value="Rimuovi filtri" onclick="javascript:salva('cleanSearchForm.do',document.forms[0])" >
      </li>
	   <li> 
        <input type="button" class="bottone" value="Chiudi" onclick="javascript:Chiudi();" >
      </li>
    </ul>
  </div> 
 
    </fieldset>
</html:form>
<c:if test="${NO_RECORDS_FOUND!=null }">
<script language="javascript1.3">
			alert('Nessuna scheda trovata per il criterio di ricerca impostato');
</script>
			
</c:if>
<script language="javascript1.3">
  var msg = '';
<logic:messagesPresent property="anno">msg+='<html:errors  property="anno"/>\r\n';</logic:messagesPresent>
<logic:messagesPresent property="intervalloScheda">msg+='<html:errors  property="intervalloScheda"/>\r\n'</logic:messagesPresent>
if(msg!=''){
	alert(msg)
}

</script>
  
</body>
</html>
